import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: "/white-path",
      children: [
        {
          path: "login",
          component: () => import("@/views/login/index.vue"),
        },
        {
          path: "low-code/:functionId",
          component: () => import("@/layout/low-code/index.vue"),
        },
      ],
    },
    {
      path: "/low-code",
      children: [
        {
          path: "function/:functionId",
          component: () => import("@/layout/low-code/index.vue"),
        },
      ],
    },
  ],
});

export default router;
